import body from '@/components/body'
import childView from '@/components/appMain.vue'
//舆情管理
const sentimentManageRouter = {
  path: '/sentimentManager',
  component: body,
  iconCls: 'icon-laiyuan',
  name: '舆情管理',//舆情管理
  meta: {
    isLink: true
  },
  children: [
    {
      path: '/sensitivity',////敏感词管理
      name: '敏感词管理',
      component: childView,
      redirect: '/sensitivity/list',
      children: [
        {
          path: '/sensitivity/list',////敏感词管理列表
          name: '敏感词列表',
          component: resolve => {
            require(['@/views/operate/word/sensitivity/list.vue'], resolve)
          },
        },
      ]
    },
    {
      path: '/collection',
      name: '采集管理',
      component: childView,
      children: [
        {
          path: '/collectionmanage',
          name: '采集',
          component: childView,
          redirect: '/collectionmanage/list',
          children: [
            {
              path: '/collectionmanage/list',
              name: '采集列表',
              component: resolve => {
                require(['@/views/operate/collection/manage/list.vue'], resolve)
              },
            },
            {
              path: '/collectionmanage/save',
              name: '采集添加',
              component: resolve => {
                require(['@/views/operate/collection/manage/edit.vue'], resolve)
              },
            },
            {
              path: '/collectionmanage/update',
              name: '采集修改',
              component: resolve => {
                require(['@/views/operate/collection/manage/edit.vue'], resolve)
              },
            },
          ]
        },
        {
          path: '/collectionhistory',
          name: '采集历史',
          component: childView,
          redirect: '/collectionhistory/list',
          children: [
            {
              path: '/collectionhistory/list',
              name: '采集列表',
              component: resolve => {
                require(['@/views/operate/collection/history/list.vue'], resolve)
              },
            },
          ]
        },
        {
          path: '/collectionspeed',
          name: '采集进度',
          component: childView,
          redirect: '/collectionspeed/view',
          children: [
            {
              path: '/collectionspeed/view',
              name: '采集查看',
              component: resolve => {
                require(['@/views/operate/collection/speed/view.vue'], resolve)
              },
            },
          ]
        },
      ]
    }
  ]
}
export default sentimentManageRouter
